package cn.bat.slsystem.pojo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Msg {
	/**
	 * 文件名称
	 */
    private String msgname;

    /**
     * 文件ID
     */
    private Long msgid;

    
    /**
     * 文件说明
     */
    private String msgexplain;

    
    /**
     * 文件大小
     */
    private Long msgsize;

    /**
     * 下载次数
     */
    private Long msgdownload;

    /**
     * 文件状态
     */
    private Integer msgstatus;

    /**
     * 最后修改时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH-mm-ss")
    private Date lastchang;

    /**
     * 文件地址
     */
    private String msgpath;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH-mm-ss")
    private Date creattime;

    public String getMsgname() {
        return msgname;
    }

    public void setMsgname(String msgname) {
        this.msgname = msgname == null ? null : msgname.trim();
    }

    public Long getMsgid() {
        return msgid;
    }

    public void setMsgid(Long msgid) {
        this.msgid = msgid;
    }

    public String getMsgexplain() {
        return msgexplain;
    }

    public void setMsgexplain(String msgexplain) {
        this.msgexplain = msgexplain == null ? null : msgexplain.trim();
    }

    public Long getMsgsize() {
        return msgsize;
    }

    public void setMsgsize(Long msgsize) {
        this.msgsize = msgsize;
    }

    public Long getMsgdownload() {
        return msgdownload;
    }

    public void setMsgdownload(Long msgdownload) {
        this.msgdownload = msgdownload;
    }

    public Integer getMsgstatus() {
        return msgstatus;
    }

    public void setMsgstatus(Integer msgstatus) {
        this.msgstatus = msgstatus;
    }

    public Date getLastchang() {
        return lastchang;
    }

    public void setLastchang(Date lastchang) {
        this.lastchang = lastchang;
    }

    public String getMsgpath() {
        return msgpath;
    }

    public void setMsgpath(String msgpath) {
        this.msgpath = msgpath == null ? null : msgpath.trim();
    }

    public Date getCreattime() {
        return creattime;
    }

    public void setCreattime(Date creattime) {
        this.creattime = creattime;
    }

	@Override
	public String toString() {
		return "Msg [msgname=" + msgname + ", msgid=" + msgid + ", msgexplain="
				+ msgexplain + ", msgsize=" + msgsize + ", msgdownload="
				+ msgdownload + ", msgstatus=" + msgstatus + ", lastchang="
				+ lastchang + ", msgpath=" + msgpath + ", creattime="
				+ creattime + "]";
	}
    
    
}